package com.example.PolimiAssistant;

import android.app.Activity;
import android.content.pm.ActivityInfo;
import android.graphics.PixelFormat;
import android.os.Bundle;
import android.preference.PreferenceActivity;

/**
 * Preferences.java
 *
 * This activity display to the user the general application settings
 *
 * Todo: Include all the settings
 * Todo: Implement the gotoprofile action
 */
public class Preferences extends PreferenceActivity {

    /**
     * The tag used for the logs.
     */
    private static final String TAG = MainMenu.class.getSimpleName();

    public void onCreate(Bundle savedInstanceState) {


        //1. Save the state of the activity
        super.onCreate(savedInstanceState);

        //2. Configure main display options
        addPreferencesFromResource(R.xml.settings);


        //Avoid banding problems with the gradient background
        getWindow().setFormat(PixelFormat.RGBA_8888);

        //Set fixed portrait orientation
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);

        //3. Set the layout used for this activity

        //4. Extra configurations

        //5. Listeners
    }
}